Skip to content

Conversation

DenverCoder1
Copy link
Owner

@DenverCoder1 DenverCoder1 commented Oct 5, 2025

Description

Fixes the broken pretter.yml workflow that currently is always failing.

  • Replaced .prettierrc JSON config with .prettierrc.js to support plugins and PHP file overrides, and ignored the new config file in .prettierignore.
  • Updated the GitHub Actions workflow (.github/workflows/prettier.yml) to explicitly set up Node.js version 22 before installing Prettier and plugins.

These changes enhance maintainability, ensure proper formatting, and prepare the project for more robust Prettier usage, especially with PHP files.

Type of change

  • Bug fix (added a non-breaking change which fixes an issue)
  • New feature (added a non-breaking change which adds functionality)
  • Updated documentation (updated the readme, templates, or other repo files)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?

  • Tested locally with a valid username
  • Tested locally with an invalid username
  • Ran tests with composer test
  • Added or updated test cases to test new features

Checklist:

  • I have checked to make sure no other pull requests are open for this issue
  • The code is properly formatted and is consistent with the existing code style
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

Screenshots

@DenverCoder1 DenverCoder1 temporarily deployed to streak-stats-prettier-f-id7y2d October 5, 2025 18:37 Inactive
@DenverCoder1 DenverCoder1 temporarily deployed to streak-stats-prettier-f-id7y2d October 5, 2025 18:38 Inactive
@DenverCoder1 DenverCoder1 temporarily deployed to streak-stats-prettier-f-id7y2d October 5, 2025 18:40 Inactive
@DenverCoder1 DenverCoder1 temporarily deployed to streak-stats-prettier-f-id7y2d October 5, 2025 18:41 Inactive
@DenverCoder1 DenverCoder1 changed the title chore: Setup node in prettier workflow chore: Setup prettier php in workflow Oct 5, 2025
@DenverCoder1 DenverCoder1 merged commit c1c20e9 into main Oct 5, 2025
2 checks passed
@DenverCoder1 DenverCoder1 deleted the prettier-fix branch October 5, 2025 18:48
@DenverCoder1 DenverCoder1 changed the title chore: Setup prettier php in workflow chore: Setup prettier php to work in the workflow Oct 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant